package net.oschina.jhssm.common.util;

/**
 * Created by ZhaoJinBing on 2017/8/11.
 */
public class PathUtil {

    private PathUtil() {

    }

    /**
     * 获取classpath
     * @return
     */
    public static String getClassPath() {
        String path = Thread.currentThread().getContextClassLoader().getResource("/").getPath();
        String os = System.getProperty("os.name");
        if (os.indexOf("Windows") > -1) {
            path = path.replaceFirst("/", "");
        }
        return path;
    }

}
